package com.clz.hyperit.service;

import java.util.List;

import com.clz.hyperit.entity.Note;
import com.clz.hyperit.vo.PageInfo;

public interface NoteService {
	//保存随笔
	public Integer saveNote(Note note);
	//根据note_id获取note
	public Note getbyid(Integer note_id);
	//删除随笔
	public void deleteNote(Integer note_id, Integer userdetail_id);
	//更新随笔
	public Note updateNote(Note note, Integer userdetail_id);
	//查找所有随笔
	public List<Note> findNote(PageInfo pageInfo);
	//获取收藏状态
	public boolean getCollection(Integer note_id, Integer userdetail_id);
	//获取关注状态
	public boolean getFollow(Integer target_id, Integer userdetail_id);
	//查找个人所有随笔
	public List<Note> findPersonNote(Integer userdetail_id,Integer status, PageInfo pageInfo);
	
	public List<Note> findNoteByRead(PageInfo pageInfo, Integer status);
	
	public List<Note> findNoteByCollect(PageInfo pageInfo, Integer status);
	public List<Note> searchNote(PageInfo pageInfo, String search, Integer status);
	//不用权限的更新
	public void updateNote(Note note);

}
